<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="utf-8">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>今日早餐工作台</title>
    <!-- <link rel="icon" href="/favicon.ico" type="image/x-icon" /> -->
    <!-- Bootstrap -->
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="<%=path%>/css/bootstrap.min.css">
    <!-- 可选的Bootstrap主题文件（一般不用引入） -->
    <!--<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">-->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="<%=path%>/scripts/jquery.js"></script>
    <style>
	    body {
	    padding-top: 5px;
	    padding-bottom: 5px;
	    background-color: #eee;
		}
        #container{
            margin-top: 50px;
            width: 100%;
        }
        .form-signin {
        max-width: 330px;
        padding: 15px;
        margin: 0 auto;
    }

    .form-signin .form-control {
        position: relative;
        height: auto;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 10px;
        font-size: 16px;
    }
    .form-signin .form-control:focus {
        z-index: 2;
    }
    .form-signin input {
        margin-bottom: 5px;
    }
    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    </style>
</head>
<body>
<div class="container" id="container">
<form action="<%=path%>/zcAdminRouter?funcID=0041" class="form-signin" method="post">
    <h2 class="form-signin-heading"><img src="<%=path%>/img/logo.jpg" class="img-responsive img-center"></h2>
    <label class="sr-only" for="inputUsername">账号</label>
    <input type="text" autofocus="" required="" placeholder="账号" class="form-control" id="inputLoginName" name="loginName">
    <label class="sr-only" for="inputPassword">密码</label>
    <input type="password" required="" placeholder="密码" class="form-control" id="inputLoginPsd" name="loginPsd">
    <div class="checkbox">
        <label>
            <input type="checkbox" value="1" name="rememberme"> 自动登录
        </label>
    </div>
    <c:if test="${errorMsg!=null&&errorMsg!=''}">
    <div class="alert alert-warning">${errorMsg}</div>
    </c:if>
    <button type="submit" class="btn btn-lg btn-primary btn-block">登录</button>
</form>
</div>
<div class="hide" id="hide-container"></div>
</body>
</html>